local Lua__shimian = fk.CreateSkill {

  name = "Lua__shimian",

  tags = { Skill.Wake, },

}

Fk:loadTranslationTable{
    
    ["Lua__shimian"] = "失眠",
    [":Lua__shimian"] = "觉醒技，回合结束时，若你本回合未因“谦战”造成过伤害，你废除判定区。",
}

Lua__shimian:addEffect(fk.TurnEnd, {
    anim_type = "special",
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(Lua__shimian.name) and
               player:usedSkillTimes(Lua__shimian.name, Player.HistoryGame) == 0
    end,
    can_wake = function(self, event, target, player, data)
      return player:getMark("qianzhan_damage-turn") == 0 
  end,
    on_use = function(self, event, target, player, data)
        player.room:abortPlayerArea(player, "JudgeSlot")
    end,
})

return Lua__shimian